package com.trsvax.gwthello.components.gwtui;

import org.apache.tapestry5.annotations.IncludeJavaScriptLibrary;
import org.apache.tapestry5.annotations.Parameter;
import org.apache.tapestry5.annotations.Property;

import com.trsvax.gwthello.client.GWTUI;
import com.trsvax.gwthello.client.gwtui.services.CheckBoxService;
import com.trsvax.gwthello.components.GWTComponent;

@IncludeJavaScriptLibrary(value = { "context:/gwtUI/gwtUI.nocache.js" })
public class CheckBox extends GWTComponent<GWTUI, CheckBoxService> implements CheckBoxService {

	@Parameter(defaultPrefix = "literal")
	@Property
	private String div;

	public Class<GWTUI> getGWTModuleClass() {
		return GWTUI.class;
	}

	public String onChange(Boolean value) {
		return getContainer().onChange(value);

	}

}
